package Messaging;


public class Drive extends IMessage {

	
	static public enum DriveStates {
		Forward,
		Backward,
		ForwardRight,
		ForwardLeft,
		BackwardRight,
		BackwardLeft
		
	}
	
	int straightSpeed = 100;
	int turnSpeed = 90;

	public void Stop()
	{
		command = "D" + 0 + "," + 0;
	}
	
	public void Forward()
	{
		command = "D" + straightSpeed + "," + straightSpeed;
	}
	
	public void Backward()
	{
		command = "D" + -straightSpeed + "," + -straightSpeed;
	}
	
	public void Right()
	{
		command = "D" + 0 + "," + straightSpeed;
	}
	
	public void Left()
	{
		command = "D" + straightSpeed + "," + 0;
	}
	
	public void ForwardRight()
	{
		command = "D" + turnSpeed + "," + straightSpeed;
	}
	
	public void ForwardLeft()
	{
		command = "D" + straightSpeed + "," + turnSpeed;		
	}
	
	public void BackwardRight()
	{
		command = "D" + -turnSpeed + "," + -straightSpeed;
	}
	
	public void BackwardLeft()
	{
		command = "D"  + -straightSpeed + "," + -turnSpeed;
	}

}
